﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

using System.IO;
using Panuon.UI.Silver;
using WaveringLand_Launcher.View;
using ProjBobcat.DefaultComponent.Launch;
using WaveringLand_Launcher.Helper;
using WaveringLand_Launcher.Helper.Net;

namespace WaveringLand_Launcher
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : WindowX
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (Directory.Exists("WLL") is false)
            {
                Directory.CreateDirectory("WLL");
            }
        }

        private void LauncheBth_Click(object sender, RoutedEventArgs e)

        {
            //检查资源

            //读取配置文件检查用户名和密码

            //启动
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //Drawer.IsOpen = true;
        }

        private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
        {
            App.SetView(new LaunchView());
        }
        private void Button_Tasks_Click(object sender, RoutedEventArgs e)
        {
            this.ViewModel.DrawerOpen = !ViewModel.DrawerOpen;
        }

    }
}
